num = int(input("请输入数字："))
print("3次机会去猜。")
count = 0

while True:
    if count < 3:
        guess = int(input("猜一猜："))
        print(type(guess))
        if num == guess:
            print("正确！")
            break
        elif num > guess:
            print("猜小了！！")
        else:
            print("猜大了！！")
    else:
        print("3次机会都猜不出来啊！")
        break
    count = count + 1
